package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 附件管理表
 */
@Data
@Entity
@Table(name = "system_attachment")
public class SystemAttachment implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 附件ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "att_id")
    private Integer attId;
    
    /**
     * 附件名称
     */
    @Column(name = "name", nullable = false, length = 100)
    private String name;
    
    /**
     * 附件路径
     */
    @Column(name = "att_dir", nullable = false, length = 200)
    private String attDir;
    
    /**
     * 压缩图片路径
     */
    @Column(name = "satt_dir", length = 200)
    private String sattDir;
    
    /**
     * 附件大小
     */
    @Column(name = "att_size", nullable = false, length = 30)
    private String attSize;
    
    /**
     * 附件类型
     */
    @Column(name = "att_type", nullable = false, length = 30)
    private String attType;
    
    /**
     * 分类ID0编辑器,1商品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图，7前台用户
     */
    @Column(name = "pid", nullable = false)
    private Integer pid;
    
    /**
     * 图片上传类型 1本地 2七牛云 3OSS 4COS
     */
    @Column(name = "image_type", nullable = false)
    private Integer imageType;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
} 